var changeBtn = document.querySelector('.slogan-change');
changeBtn.addEventListener('click', function () {
    if (changeBtn.dataset.page === 'login') {
        document.querySelector('.content').classList.add("add-class-content");
        document.querySelector('.login-img').classList.add("add-class-login-img");
        document.querySelector('.register-img').classList.add("add-class-register-img");
        document.querySelector('.login-img').classList.remove("add-class-login-img-show");
        document.querySelector('.login-wrapper').style.height = "80vh";
        document.querySelector('.content').style.height = "90vh";
        document.querySelector('.login-form').style.display = "none";
        document.querySelector('.register-form').style.display = "block";
        document.querySelector('.slogan-change').innerHTML = '登录';
        document.querySelector('.text').innerHTML = '注册';
        document.querySelector('.slogan-foruser').innerHTML = '不离不弃';
        changeBtn.dataset.page = "register";
    }
    else {
        document.querySelector('.content').classList.remove("add-class-content");
        document.querySelector('.login-img').classList.remove("add-class-login-img");
        document.querySelector('.login-img').classList.add("add-class-login-img-show");
        document.querySelector('.register-img').classList.remove("add-class-register-img");
        document.querySelector('.login-wrapper').style.height = "70vh";
        document.querySelector('.content').style.height = "85vh";
        document.querySelector('.login-form').style.display = "block";
        document.querySelector('.register-form').style.display = "none";
        document.querySelector('.slogan-change').innerHTML = '注册';
        document.querySelector('.text').innerHTML = '登录';
        document.querySelector('.slogan-foruser').innerHTML = '尊重生命';
        changeBtn.dataset.page = "login";
    }
})